package email

import (
	"github.com/gin-gonic/gin"
	apis "vrcm/src/vrcm/app/admin/apis/email"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerSmsRouter)
}

// registerSmsRouter
func registerSmsRouter(v1 *gin.RouterGroup) {
	api := apis.Email{}
	r := v1.Group("/email")
	{
		r.POST("/send-email-code", api.SendEmailCode)
		r.POST("/check-email-code", api.CheckEmailCode)
	}
}
